<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>robotide.usages.UsageRunner</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="robotide-module.html">Package&nbsp;robotide</a> ::
        <a href="robotide.usages-module.html">Package&nbsp;usages</a> ::
        Module&nbsp;UsageRunner
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="robotide.usages.UsageRunner-module.html">Module robotide.usages.UsageRunner</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package robotide=robotide-module.html"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-0', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package robotide.usages=robotide.usages-module.html"><a title="robotide.usages" class="py-name" href="#" onclick="return doclink('link-1', 'usages', 'link-1');">usages</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Module robotide.controller.commands=robotide.controller.commands-module.html,Module robotide.usages.commands=robotide.usages.commands-module.html"><a title="robotide.controller.commands
robotide.usages.commands" class="py-name" href="#" onclick="return doclink('link-2', 'commands', 'link-2');">commands</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Class robotide.usages.commands.FindUsages=robotide.usages.commands.FindUsages-class.html"><a title="robotide.usages.commands.FindUsages" class="py-name" href="#" onclick="return doclink('link-3', 'FindUsages', 'link-3');">FindUsages</a></tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-4" class="py-name"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-4', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="robotide.usages" class="py-name" href="#" onclick="return doclink('link-5', 'usages', 'link-1');">usages</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Module robotide.ui.usagesdialog=robotide.ui.usagesdialog-module.html,Module robotide.usages.usagesdialog=robotide.usages.usagesdialog-module.html"><a title="robotide.ui.usagesdialog
robotide.usages.usagesdialog" class="py-name" href="#" onclick="return doclink('link-6', 'usagesdialog', 'link-6');">usagesdialog</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Class robotide.ui.usagesdialog.UsagesDialog=robotide.ui.usagesdialog.UsagesDialog-class.html,Class robotide.usages.usagesdialog.UsagesDialog=robotide.usages.usagesdialog.UsagesDialog-class.html"><a title="robotide.ui.usagesdialog.UsagesDialog
robotide.usages.usagesdialog.UsagesDialog" class="py-name" href="#" onclick="return doclink('link-7', 'UsagesDialog', 'link-7');">UsagesDialog</a></tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name" targets="Class robotide.usages.usagesdialog.UsagesDialogWithUserKwNavigation=robotide.usages.usagesdialog.UsagesDialogWithUserKwNavigation-class.html"><a title="robotide.usages.usagesdialog.UsagesDialogWithUserKwNavigation" class="py-name" href="#" onclick="return doclink('link-8', 'UsagesDialogWithUserKwNavigation', 'link-8');">UsagesDialogWithUserKwNavigation</a></tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">threading</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Thread</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">wx</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"> </tt>
<a name="Usages"></a><div id="Usages-def"><a name="L7"></a><tt class="py-lineno"> 7</tt> <a class="py-toggle" href="#" id="Usages-toggle" onclick="return toggle('Usages');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html">Usages</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Usages-expanded"><a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"> </tt>
<a name="Usages.__init__"></a><div id="Usages.__init__-def"><a name="L9"></a><tt class="py-lineno"> 9</tt> <a class="py-toggle" href="#" id="Usages.__init__-toggle" onclick="return toggle('Usages.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">controller</tt><tt class="py-op">,</tt> <tt class="py-param">highlight</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">kw_info</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages.__init__-expanded"><a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt> <tt class="py-op">=</tt> <tt id="link-9" class="py-name" targets="Variable robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name=robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode-class.html#name,Variable robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name=robotide.contrib.testrunner.runprofiles.CustomScriptProfile-class.html#name,Variable robotide.contrib.testrunner.runprofiles.PybotProfile.name=robotide.contrib.testrunner.runprofiles.PybotProfile-class.html#name,Variable robotide.controller.settingcontrollers.ImportController.name=robotide.controller.settingcontrollers.ImportController-class.html#name,Variable robotide.controller.settingcontrollers.MetadataController.name=robotide.controller.settingcontrollers.MetadataController-class.html#name,Variable robotide.controller.settingcontrollers.VariableController.name=robotide.controller.settingcontrollers.VariableController-class.html#name,Variable robotide.controller.stepcontrollers.ForLoopStepController.name=robotide.controller.stepcontrollers.ForLoopStepController-class.html#name,Variable robotide.controller.tags.Tag.name=robotide.controller.tags.Tag-class.html#name,Variable robotide.editor.editors.EditorPanel.name=robotide.editor.editors.EditorPanel-class.html#name,Variable robotide.publish.messages.name=robotide.publish.messages-module.html#name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-9', 'name', 'link-9');">name</a></tt> <tt class="py-keyword">or</tt> <tt id="link-10" class="py-name" targets="Package robotide.controller=robotide.controller-module.html,Variable robotide.controller.tags.Tag.controller=robotide.controller.tags.Tag-class.html#controller"><a title="robotide.controller
robotide.controller.tags.Tag.controller" class="py-name" href="#" onclick="return doclink('link-10', 'controller', 'link-10');">controller</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-11', 'name', 'link-9');">name</a></tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_kw_info</tt> <tt class="py-op">=</tt> <tt class="py-name">kw_info</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_controller</tt> <tt class="py-op">=</tt> <tt id="link-12" class="py-name"><a title="robotide.controller
robotide.controller.tags.Tag.controller" class="py-name" href="#" onclick="return doclink('link-12', 'controller', 'link-10');">controller</a></tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_highlight</tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name" targets="Method robotide.editor.EditorPlugin.highlight()=robotide.editor.EditorPlugin-class.html#highlight,Method robotide.editor.editors.DocumentationEditor.highlight()=robotide.editor.editors.DocumentationEditor-class.html#highlight,Method robotide.editor.editors.SettingEditor.highlight()=robotide.editor.editors.SettingEditor-class.html#highlight,Method robotide.editor.editors.SettingValueDisplay.highlight()=robotide.editor.editors.SettingValueDisplay-class.html#highlight,Method robotide.editor.editors.Settings.highlight()=robotide.editor.editors.Settings-class.html#highlight,Method robotide.editor.editors.TagsEditor.highlight()=robotide.editor.editors.TagsEditor-class.html#highlight,Method robotide.editor.kweditor.KeywordEditor.highlight()=robotide.editor.kweditor.KeywordEditor-class.html#highlight,Method robotide.pluginapi.plugin.Plugin.highlight()=robotide.pluginapi.plugin.Plugin-class.html#highlight,Method robotide.ui.tree.Tree.highlight()=robotide.ui.tree.Tree-class.html#highlight"><a title="robotide.editor.EditorPlugin.highlight
robotide.editor.editors.DocumentationEditor.highlight
robotide.editor.editors.SettingEditor.highlight
robotide.editor.editors.SettingValueDisplay.highlight
robotide.editor.editors.Settings.highlight
robotide.editor.editors.TagsEditor.highlight
robotide.editor.kweditor.KeywordEditor.highlight
robotide.pluginapi.plugin.Plugin.highlight
robotide.ui.tree.Tree.highlight" class="py-name" href="#" onclick="return doclink('link-13', 'highlight', 'link-13');">highlight</a></tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_usages_dialog</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_worker</tt> <tt class="py-op">=</tt> <tt class="py-name">Thread</tt><tt class="py-op">(</tt><tt class="py-name">target</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_run</tt><tt class="py-op">)</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dialog_closed</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"> </tt>
<a name="Usages._usages_dialog"></a><div id="Usages._usages_dialog-def"><a name="L18"></a><tt class="py-lineno">18</tt> <a class="py-toggle" href="#" id="Usages._usages_dialog-toggle" onclick="return toggle('Usages._usages_dialog');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#_usages_dialog">_usages_dialog</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages._usages_dialog-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages._usages_dialog-expanded"><a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_controller</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-14', 'name', 'link-9');">name</a></tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt><tt class="py-op">:</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-15" class="py-name"><a title="robotide.usages.usagesdialog.UsagesDialogWithUserKwNavigation" class="py-name" href="#" onclick="return doclink('link-15', 'UsagesDialogWithUserKwNavigation', 'link-8');">UsagesDialogWithUserKwNavigation</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_highlight</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_controller</tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-16" class="py-name"><a title="robotide.ui.usagesdialog.UsagesDialog
robotide.usages.usagesdialog.UsagesDialog" class="py-name" href="#" onclick="return doclink('link-16', 'UsagesDialog', 'link-7');">UsagesDialog</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt><tt class="py-op">)</tt> </tt>
</div><a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"> </tt>
<a name="Usages.show"></a><div id="Usages.show-def"><a name="L23"></a><tt class="py-lineno">23</tt> <a class="py-toggle" href="#" id="Usages.show-toggle" onclick="return toggle('Usages.show');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#show">show</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages.show-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages.show-expanded"><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Method robotide.ui.usagesdialog.UsagesDialog.add_selection_listener()=robotide.ui.usagesdialog.UsagesDialog-class.html#add_selection_listener,Method robotide.usages.usagesdialog.UsagesDialog.add_selection_listener()=robotide.usages.usagesdialog.UsagesDialog-class.html#add_selection_listener,Method robotide.widgets.list.VirtualList.add_selection_listener()=robotide.widgets.list.VirtualList-class.html#add_selection_listener"><a title="robotide.ui.usagesdialog.UsagesDialog.add_selection_listener
robotide.usages.usagesdialog.UsagesDialog.add_selection_listener
robotide.widgets.list.VirtualList.add_selection_listener" class="py-name" href="#" onclick="return doclink('link-17', 'add_selection_listener', 'link-17');">add_selection_listener</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_highlight</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt><tt class="py-op">.</tt><tt class="py-name">Bind</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stop</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name" targets="Method robotide.contrib.SearchPlugin.SearchDialog.Show()=robotide.contrib.SearchPlugin.SearchDialog-class.html#Show"><a title="robotide.contrib.SearchPlugin.SearchDialog.Show" class="py-name" href="#" onclick="return doclink('link-18', 'Show', 'link-18');">Show</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_worker</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Method robotide.run.process.Process.start()=robotide.run.process.Process-class.html#start"><a title="robotide.run.process.Process.start" class="py-name" href="#" onclick="return doclink('link-19', 'start', 'link-19');">start</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"> </tt>
<a name="Usages._run"></a><div id="Usages._run-def"><a name="L29"></a><tt class="py-lineno">29</tt> <a class="py-toggle" href="#" id="Usages._run-toggle" onclick="return toggle('Usages._run');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#_run">_run</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages._run-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages._run-expanded"><a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">CallAfter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_begin_search</tt><tt class="py-op">)</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-20" class="py-name" targets="Variable robotide.controller.commands.Occurrence.usage=robotide.controller.commands.Occurrence-class.html#usage,Method robotide.ui.usagesdialog.UsagesListModel.usage()=robotide.ui.usagesdialog.UsagesListModel-class.html#usage,Method robotide.usages.usagesdialog.UsagesListModel.usage()=robotide.usages.usagesdialog.UsagesListModel-class.html#usage"><a title="robotide.controller.commands.Occurrence.usage
robotide.ui.usagesdialog.UsagesListModel.usage
robotide.usages.usagesdialog.UsagesListModel.usage" class="py-name" href="#" onclick="return doclink('link-20', 'usage', 'link-20');">usage</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_controller</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Method robotide.controller.chiefcontroller.ChiefController.execute()=robotide.controller.chiefcontroller.ChiefController-class.html#execute,Method robotide.controller.commands.AddSuite.execute()=robotide.controller.commands.AddSuite-class.html#execute,Method robotide.controller.commands.AddTestCase.execute()=robotide.controller.commands.AddTestCase-class.html#execute,Method robotide.controller.commands.ChangeTag.execute()=robotide.controller.commands.ChangeTag-class.html#execute,Method robotide.controller.commands.CopyMacroAs.execute()=robotide.controller.commands.CopyMacroAs-class.html#execute,Method robotide.controller.commands.CreateNewResource.execute()=robotide.controller.commands.CreateNewResource-class.html#execute,Method robotide.controller.commands.ExtractKeyword.execute()=robotide.controller.commands.ExtractKeyword-class.html#execute,Method robotide.controller.commands.FindOccurrences.execute()=robotide.controller.commands.FindOccurrences-class.html#execute,Method robotide.controller.commands.MoveTo.execute()=robotide.controller.commands.MoveTo-class.html#execute,Method robotide.controller.commands.Purify.execute()=robotide.controller.commands.Purify-class.html#execute,Method robotide.controller.commands.Redo.execute()=robotide.controller.commands.Redo-class.html#execute,Method robotide.controller.commands.SaveAll.execute()=robotide.controller.commands.SaveAll-class.html#execute,Method robotide.controller.commands.SaveFile.execute()=robotide.controller.commands.SaveFile-class.html#execute,Method robotide.controller.commands.Undo.execute()=robotide.controller.commands.Undo-class.html#execute,Method robotide.controller.commands.UpdateVariable.execute()=robotide.controller.commands.UpdateVariable-class.html#execute,Method robotide.controller.commands.UpdateVariableName.execute()=robotide.controller.commands.UpdateVariableName-class.html#execute,Method robotide.controller.settingcontrollers.TagsController.execute()=robotide.controller.settingcontrollers.TagsController-class.html#execute,Method robotide.usages.commands.FindUsages.execute()=robotide.usages.commands.FindUsages-class.html#execute"><a title="robotide.controller.chiefcontroller.ChiefController.execute
robotide.controller.commands.AddSuite.execute
robotide.controller.commands.AddTestCase.execute
robotide.controller.commands.ChangeTag.execute
robotide.controller.commands.CopyMacroAs.execute
robotide.controller.commands.CreateNewResource.execute
robotide.controller.commands.ExtractKeyword.execute
robotide.controller.commands.FindOccurrences.execute
robotide.controller.commands.MoveTo.execute
robotide.controller.commands.Purify.execute
robotide.controller.commands.Redo.execute
robotide.controller.commands.SaveAll.execute
robotide.controller.commands.SaveFile.execute
robotide.controller.commands.Undo.execute
robotide.controller.commands.UpdateVariable.execute
robotide.controller.commands.UpdateVariableName.execute
robotide.controller.settingcontrollers.TagsController.execute
robotide.usages.commands.FindUsages.execute" class="py-name" href="#" onclick="return doclink('link-21', 'execute', 'link-21');">execute</a></tt><tt class="py-op">(</tt><tt id="link-22" class="py-name"><a title="robotide.usages.commands.FindUsages" class="py-name" href="#" onclick="return doclink('link-22', 'FindUsages', 'link-3');">FindUsages</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_kw_info</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">            <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">sleep</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> <tt class="py-comment"># GIVE SPACE TO OTHER TRHEADS -- Thread.yield in Java</tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dialog_closed</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">CallAfter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_add_usage</tt><tt class="py-op">,</tt> <tt id="link-23" class="py-name"><a title="robotide.controller.commands.Occurrence.usage
robotide.ui.usagesdialog.UsagesListModel.usage
robotide.usages.usagesdialog.UsagesListModel.usage" class="py-name" href="#" onclick="return doclink('link-23', 'usage', 'link-20');">usage</a></tt><tt class="py-op">)</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">CallAfter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_end_search</tt><tt class="py-op">)</tt> </tt>
</div><a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line"> </tt>
<a name="Usages._begin_search"></a><div id="Usages._begin_search-def"><a name="L37"></a><tt class="py-lineno">37</tt> <a class="py-toggle" href="#" id="Usages._begin_search-toggle" onclick="return toggle('Usages._begin_search');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#_begin_search">_begin_search</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages._begin_search-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages._begin_search-expanded"><a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dialog_closed</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Method robotide.usages.usagesdialog.UsagesDialog.begin_searching()=robotide.usages.usagesdialog.UsagesDialog-class.html#begin_searching"><a title="robotide.usages.usagesdialog.UsagesDialog.begin_searching" class="py-name" href="#" onclick="return doclink('link-24', 'begin_searching', 'link-24');">begin_searching</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"> </tt>
<a name="Usages._add_usage"></a><div id="Usages._add_usage-def"><a name="L41"></a><tt class="py-lineno">41</tt> <a class="py-toggle" href="#" id="Usages._add_usage-toggle" onclick="return toggle('Usages._add_usage');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#_add_usage">_add_usage</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">usage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages._add_usage-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages._add_usage-expanded"><a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dialog_closed</tt><tt class="py-op">:</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Method robotide.usages.usagesdialog.UsagesDialog.add_usage()=robotide.usages.usagesdialog.UsagesDialog-class.html#add_usage,Method robotide.usages.usagesdialog.UsagesListModel.add_usage()=robotide.usages.usagesdialog.UsagesListModel-class.html#add_usage"><a title="robotide.usages.usagesdialog.UsagesDialog.add_usage
robotide.usages.usagesdialog.UsagesListModel.add_usage" class="py-name" href="#" onclick="return doclink('link-25', 'add_usage', 'link-25');">add_usage</a></tt><tt class="py-op">(</tt><tt id="link-26" class="py-name"><a title="robotide.controller.commands.Occurrence.usage
robotide.ui.usagesdialog.UsagesListModel.usage
robotide.usages.usagesdialog.UsagesListModel.usage" class="py-name" href="#" onclick="return doclink('link-26', 'usage', 'link-20');">usage</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"> </tt>
<a name="Usages._end_search"></a><div id="Usages._end_search-def"><a name="L45"></a><tt class="py-lineno">45</tt> <a class="py-toggle" href="#" id="Usages._end_search-toggle" onclick="return toggle('Usages._end_search');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#_end_search">_end_search</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages._end_search-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages._end_search-expanded"><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dialog_closed</tt><tt class="py-op">:</tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dlg</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Method robotide.usages.usagesdialog.UsagesDialog.end_searching()=robotide.usages.usagesdialog.UsagesDialog-class.html#end_searching"><a title="robotide.usages.usagesdialog.UsagesDialog.end_searching" class="py-name" href="#" onclick="return doclink('link-27', 'end_searching', 'link-27');">end_searching</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line"> </tt>
<a name="Usages._stop"></a><div id="Usages._stop-def"><a name="L49"></a><tt class="py-lineno">49</tt> <a class="py-toggle" href="#" id="Usages._stop-toggle" onclick="return toggle('Usages._stop');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.UsageRunner.Usages-class.html#_stop">_stop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Usages._stop-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Usages._stop-expanded"><a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dialog_closed</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">        <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">Skip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Apr 13 15:09:47 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
